package com.wwj.auction.login.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author wwj
 * @since 2021-08-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "UserInfo对象", description = "")
public class UserInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    @ApiModelProperty(value = "用户性别")
    private String sex;

    @ApiModelProperty(value = "绑定账户协议号")
    private String bindCode;

    @ApiModelProperty(value = "用户生日")
    private LocalDateTime birthday;

    @ApiModelProperty(value = "用户所在地")
    private Integer address;

    @ApiModelProperty(value = "用户详细地址	用户详细地址")
    private String detailAddress;

    @ApiModelProperty(value = "用户个性签名")
    private String signature;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户手机号")
    private String phone;

    @ApiModelProperty(value = "用户密码")
    private String password;

    @ApiModelProperty(value = "用户类型，0为买家，1为卖家")
    private Integer userType;

    @ApiModelProperty(value = "用户身份证号")
    private String idCard;

    @ApiModelProperty(value = "绑定状态")
    private Integer bindStatus;

    @ApiModelProperty(value = "用户状态，0为锁定；1为激活")
    private Integer status;

    @ApiModelProperty(value = "逻辑删除字段")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "卖家认证状态，0为未认证，1为已认证")
    private Integer sellerAuthStatus;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @TableField(exist = false)
    @ApiModelProperty(value = "短信验证码")
    private String code;

    @ApiModelProperty(value = "用户姓名")
    private String name;

    @TableField(exist = false)
    @ApiModelProperty(value = "访问令牌")
    private String token;

    @ApiModelProperty(value = "登录时间")
    private LocalDateTime loginTime;

    @ApiModelProperty(value = "店铺状态")
    private Integer storeStatus;
}
